package com.kang.manager.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("item")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    // 商品编号
    @TableId(value = "id", type = IdType.AUTO) //主键自增
    private Long id;

    // 商品标题
    private String title;

    // 商品卖点
    private String sellPoint;

    // 商品价格
    private BigDecimal price;


    private Integer stockCount;

    // 库存
    private Integer num;

    // 商品条形码
    private String barcode;

    // 商品图片
    private String image;

    // 所属类
    private Long categoryId;


    // 商品状态
    private String status;

    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    // 更新时间
    private LocalDateTime updateTime;

    private String itemSn;

    private BigDecimal costPirce;

    private BigDecimal marketPrice;

    private String isDefault;

    private Long goodsId;

    private String sellerId;

    private String cartThumbnail;

    private String category;

    private String brand;

    private String spec;

    private String seller;
}
